package cn.wit.contest.controller;

import cn.wit.contest.condition.ContestHistoryInfoCondition;
import cn.wit.contest.service.ContestHistoryInfoService;
import cn.wit.utils.response.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/contest")
@CrossOrigin
@Api(tags = "竞赛浏览记录")
public class ContestHistoryInfoController {
    private Logger logger = LoggerFactory.getLogger(ContestHistoryInfoController.class);
    @Autowired
    private ContestHistoryInfoService contestHistoryInfoService;



    @GetMapping("/getContestHistoryInfo")
    @ApiOperation("竞赛信息历史记录分析查询")
    public Result getContestHistoryInfo() {
        return this.contestHistoryInfoService.getContestHistoryInfo();
    }
}
